home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilenus / tbox / tbox13.exe / UTILS.DOC < prev    next >
Encoding:
Text File  |  1992-07-02  |  98.3 KB  |  2,265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                              BINARY TOOLSHED
  10.  
  11.  
  12.  
  13.  
  14.                                  UTILITIES
  15.  
  16.  
  17.  
  18.  
  19.                                 USER MANUAL
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                             *
  31.                           *   *
  32.                         *       *
  33.                       *           *               The
  34.                     *               *
  35.                   *                   *           Binary
  36.                  *                     *
  37.                  *                     *          Toolshed
  38.                  *                     *
  39.                  *                     *
  40.                  *  ******             *
  41.                  *        *            *
  42.                  *        *            *          Version 1.2
  43.                  *        *            *          July 2, 1992
  44.                  *        *            *
  45.                  *        *            *
  46.                   ********             *
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.                              TABLE OF CONTENTS
  57.  
  58.     1.0 INTRODUCTION......................................................1
  59.     1.1 General...........................................................1
  60.     1.2 System Requirements and Installation..............................2
  61.     1.3 Other Manuals.....................................................3
  62.  
  63.     2.0 BTSPATCH..........................................................4
  64.  
  65.     3.0 DIRS..............................................................6
  66.  
  67.     4.0 DRIVES............................................................9
  68.  
  69.     5.0 MAKEBAT..........................................................11
  70.  
  71.     6.0 ONPATH...........................................................14
  72.  
  73.     7.0 TOASCII..........................................................15
  74.  
  75.     8.0 TREE.............................................................16
  76.  
  77.     9.0 VIEW.............................................................24
  78.  
  79.     10.0 WI..............................................................32
  80.  
  81.  
  82.     APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY.................38
  83.  
  84.  
  85. BTS Utilities User Manual                                            Page 1
  86. ___________________________________________________________________________
  87.  
  88.  
  89.  
  90. 1.0 INTRODUCTION
  91.  
  92. 1.1 General
  93.  
  94.     This manual describes a number of utility programs that are available
  95.     from The Binary Toolshed (BTS).  They accomplish a variety of
  96.     functions, many of which are not available through DOS or elsewhere.
  97.     While these programs can be used in conjunction with the ToolBOX and
  98.     TBOXCFG programs, they are independent and are capable of being used on
  99.     their own.
  100.  
  101.     The utility programs, are:
  102.  
  103.            BTSPATCH Provides the capability to set the default command line
  104.                     arguments for all Binary Toolshed programs.
  105.  
  106.           *DIRS     Displays disk space utilization for directory branches.
  107.                     It produces the cumulative totals for a directory and
  108.                     all of its descendants.
  109.  
  110.           *DRIVES   Displays disk drive parameters for all assigned drives.
  111.                     The presentation includes drive types, volume names,
  112.                     capacities, and free space available.
  113.  
  114.           *MAKEBAT  Creates batch files based on a template data file and a
  115.                     file match specification for applicable files.
  116.  
  117.           *ONPATH   Determines if specified files are accessible through
  118.                     the DOS PATH variable.
  119.  
  120.            TOASCII  Converts text files that use the extended IBM PC
  121.                     character set to use the standard 95 printable ASCII
  122.                     characters.
  123.  
  124.            TREE     Graphically displays the directory structure.  The user
  125.                     can  cursor through this structure to change director-
  126.                     ies or examine files.
  127.  
  128.            VIEW     Displays the contents of text files for viewing or
  129.                     browsing.
  130.  
  131.           *WI       A 'WhereIs' program.  Finds specified files wherever
  132.                     they are located on the disk drive(s), and optionally
  133.                     carries out an operation on those files.
  134.  
  135.  
  136.                          * these programs are only provided with the
  137.                            registered version of the ToolBOX/TBOXCFG
  138.                     program.
  139.  
  140.     These utilities are described in detail, starting alphabetically in
  141.     Section 2.0.
  142.  
  143.     The VIEW program can be used to examine the contents of this document.
  144.  
  145. BTS Utilities User Manual                                            Page 2
  146. ___________________________________________________________________________
  147.  
  148.  
  149.     If your current printer does not support line drawing and other
  150.     extended characters, use the TOASCII program to make a version of this
  151.     document that is compatible with your printer.
  152.  
  153.     Refer to the BTS General Product Overview Manual for a description of
  154.     conventions that are common to all BTS program products, including the
  155.     utilities.  The manual also contains a glossary of the terms and
  156.     documentation conventions that are used throughout The Binary Toolshed
  157.     manuals.
  158.  
  159.  
  160.  
  161. 1.2 System Requirements and Installation
  162.  
  163.  
  164.     Refer to the BTS General Product Overview Manual for a more detailed
  165.     description of the system requirements and installation procedures.
  166.  
  167.  
  168.     System requirements:
  169.  
  170.           o    any DOS version, 3.0 through 5.0
  171.  
  172.           o    any video card - MDA, CGA, EGA, or VGA
  173.  
  174.  
  175.     Installation procedure:
  176.  
  177.           o    copy each of the utilities to a directory on the PATH.
  178.  
  179.           o    it may be advantageous to move the data file that is
  180.                created the first time the TREE program is run.  Refer to
  181.                the TREE documentation in Section 8.
  182.  
  183.           o    use the BTSPATCH and TBOXCFG programs to personalize the
  184.                operation of each program as desired.
  185.  
  186.  
  187.  
  188.  
  189. BTS Utilities User Manual                                            Page 3
  190. ___________________________________________________________________________
  191.  
  192.  
  193. 1.3 Other Manuals
  194.  
  195.      For additional information, refer to:
  196.  
  197.           STRTHERE.DOC   Quick summary of the BTS program capabilities.
  198.  
  199.           ORDRINFO.DOC   Product support information - a description of the
  200.                          shareware concept, when to register and the
  201.                          advantages in doing so, warranty and support
  202.                          terms, and site license prices.
  203.  
  204.           GENERAL.DOC    Information that is common to all of the Binary
  205.                          Toolshed products; including packing information,
  206.                          installation, common program conventions, setup
  207.                          instructions for the sample datafiles provided, a
  208.                          glossary of applicable terms, and a series of
  209.                          questions and answers for many of the issues that
  210.                          arise during operation of the Binary Toolshed
  211.                          products.
  212.  
  213.           TBOX.DOC       User Manual for the main ToolBOX shell program.
  214.  
  215.           TBOXCFG.DOC    User Manual for the TBOXCFG configuration program.
  216.                          This program produces configuration files that are
  217.                          used by the ToolBOX program, as well as to a
  218.                          lesser extent the VIEW and TREE utilities.
  219.  
  220.  
  221. BTS Utilities User Manual                                 (BTSPATCH) Page 4
  222. ___________________________________________________________________________
  223.  
  224.  
  225. 2.0 BTSPATCH                                                           V1.1
  226. ___________________________________________________________________________
  227.  
  228.     PURPOSE:   Inserts a default set of command line arguments into any of
  229.                the Binary Toolshed programs.
  230.  
  231.  
  232.     USAGE:     btspatch progName [=progName_argument_list]
  233.  
  234.                where:
  235.  
  236.                     progName  BTS program to be patched.  The.exe extension
  237.                               is assumed.
  238.  
  239.                     =progName_argument_list
  240.                               the arguments to be used as the default
  241.                               settings for progName.
  242.  
  243.  
  244.     SUMMARY:   The utility program inserts (patches) the text after the
  245.                equal sign directly into the specified program - this must
  246.                be a Binary Toolshed program.  The arguments are stored as
  247.                entered, no validation is performed.  The effective result
  248.                is that these programs operate as if this text was entered
  249.                at the start of their command line each time the program is
  250.                executed.
  251.  
  252.                BTSPATCH displays:
  253.                     o the Binary Toolshed program name and version number
  254.                     o the previously stored argument settings
  255.                     o the new settings that are being inserted
  256.  
  257.                If the =progName_argument_list is omitted, BTSPATCH just
  258.                displays the previously existing settings.
  259.  
  260.                When the program is patched a backup copy of the original is
  261.                made with a .BAK extension.
  262.  
  263.  
  264.     EXAMPLE:   1) Set the default video parameters and a configuration file
  265.                   for the ToolBOX program.
  266.  
  267.                       btspatch tbox =-ve43 -cg @c:\bin\data\my.cfg
  268.  
  269.                       BTSPATCH V1.1 (c) 1992 - The Binary Toolshed
  270.  
  271.                       Program           : TBOX V1.10 (Unregistered Version)
  272.                       Current arguments : -ve43 -xt
  273.                       New argument list : -ve43 -cg @c:\bin\data\my.cfg
  274.  
  275.  
  276.  
  277. BTS Utilities User Manual                                 (BTSPATCH) Page 5
  278. ___________________________________________________________________________
  279.  
  280.  
  281.                2) Change the default for the number of levels displayed for
  282.                   the DIRS program to one.  Note the original factory
  283.                   defaults are not actually stored as command line
  284.                   arguments.
  285.  
  286.                       btspatch dirs =-l1
  287.  
  288.                       BTSPATCH V1.1 (c) 1992 - The Binary Toolshed
  289.  
  290.                       Program           : DIRS V1.00
  291.                       Current arguments :
  292.                       New argument list : -l1
  293.  
  294.  
  295.  
  296. BTS Utilities User Manual                                     (DIRS) Page 6
  297. ___________________________________________________________________________
  298.  
  299.  
  300. 3.0 DIRS                                                               V1.0
  301. ___________________________________________________________________________
  302.  
  303.     PURPOSE:   Displays the physical disk space allocated to a directory
  304.                branch, i.e. a directory and all of its subdirectories.
  305.  
  306.  
  307.     USAGE:     dirs  path -l# -[pP] -[sS]
  308.  
  309.                where (all arguments are optional):
  310.  
  311.                     path      the root directory to start the display from.
  312.                               The default is the current directory on the
  313.                               current drive.
  314.  
  315.                     -l#       where # indicates the maximum number of
  316.                               displayed levels.  # may range from 1 to 16
  317.                               with a default of 7.  Files for lower levels
  318.                               that are not displayed are still incorporated
  319.                               into the cumulative totals.
  320.  
  321.                     -p / -P   determines if DIRS should Pause after each
  322.                               complete output screen.  Default is pause:-P.
  323.  
  324.                     -s / -S   determines if the Summary report should be
  325.                               inhibited.  Default is no summary report:-S.
  326.  
  327.                The default is equivalent to: dirs .\ -l7 -P -S
  328.  
  329.  
  330.     SUMMARY:   Graphically shows the directory tree with the cumulative
  331.                space used by a directory and all of its subordinates.
  332.  
  333.                Entries within each level are listed alphabetically.
  334.  
  335.                All byte totals are in terms of integral cluster units.
  336.                That is, the unused space (slackspace) at the end of the
  337.                last allocated cluster for each file is included in the
  338.                total sizes.
  339.  
  340.                The main report contains three columns.  The first displays
  341.                the directory tree.  The second column identifies the total
  342.                space allocated by the directory to the left, INCLUDING all
  343.                of its subdirectories.  The third column identifies the
  344.                number of files and disk space used within the single
  345.                directory.
  346.  
  347.                The optional summary report contains two sections, one for
  348.                the drive and one for the branch.
  349.  
  350.                The drive portion is essentially self explanatory showing
  351.                the volume name, total capacity, free space (in bytes and as
  352.                a percentage), and the cluster size (the minimum allocation
  353.                unit size).  If the path started from the drive root, a
  354.                fourth line is displayed showing the drive space that is
  355.  
  356. BTS Utilities User Manual                                     (DIRS) Page 7
  357. ___________________________________________________________________________
  358.  
  359.  
  360.                unavailable for file allocation.  This includes space
  361.                allocated to bad blocks as well as directories.  For hard
  362.                disks this is typically in the order of 1 to 2%, while
  363.                network drives are usually much higher in the 10 to 15%
  364.                range.
  365.  
  366.                The branch portion of the report pertains specifically to
  367.                the information associated with the displayed branch: total
  368.                number of directories, files, and allocated bytes, as well
  369.                as the portion of the total drive used.  The last line shows
  370.                the slack space within the branch - the cumulative total of
  371.                the unusable space at the end of the files.  This varies
  372.                considerably, usually being higher with greater proportions
  373.                of smaller files.
  374.  
  375.  
  376.  
  377. BTS Utilities User Manual                                     (DIRS) Page 8
  378. ___________________________________________________________________________
  379.  
  380.  
  381.     EXAMPLE:   To display the data for drive c: for two directory levels
  382.                starting from the root, and to include a summary report:
  383.  
  384.  
  385.                dirs c:\ /s /l2
  386.  
  387.                Directory branch for - C:\
  388.  
  389.                \              32,360,448                30,720 in   3 files
  390.                ├─BIN             3,502,080           2,863,104 in 278 files
  391.                │ ├─DATA              313,344           313,344 in  34 files
  392.                │ ├─DOC               139,264           139,264 in   5 files
  393.                │ └─OLD               186,368           186,368 in  19 files
  394.                ├─DEV             2,390,016           2,390,016 in  21 files
  395.                ├─DOS               585,728             585,728 in  44 files
  396.                ├─PKG            25,694,208                   0 in   0 files
  397.                │ ├─LNL               129,024           129,024 in   9 files
  398.                │ ├─MAVIS             544,768           544,768 in   7 files
  399.                │ ├─MSC6            1,705,984           886,784 in  65 files
  400.                │ ├─PCPLUS          1,155,072           980,992 in  52 files
  401.                │ ├─PCTOOLS         1,777,664         1,777,664 in  63 files
  402.                │ ├─PM-PLUS         1,034,240         1,034,240 in 108 files
  403.                │ ├─QB              2,000,896           786,432 in  81 files
  404.                │ ├─QC              2,918,400         2,404,352 in  23 files
  405.                │ ├─TCPP            1,503,232         1,169,408 in  25 files
  406.                │ ├─WIN3            5,822,464         3,250,176 in 103 files
  407.                │ ├─WINWORD         1,155,072         1,155,072 in 202 files
  408.                │ ├─WORKS           2,748,416         2,654,208 in  92 files
  409.                │ ├─WP              2,807,808         1,828,864 in  30 files
  410.                │ └─XY                391,168           391,168 in  13 files
  411.                └─SYS               157,696             157,696 in  19 files
  412.  
  413.                Drive     : Volume - C:(SYS)
  414.                          : 33,449,984 total with 667,648 bytes free (2.0%)
  415.                          : Cluster size 2,048 bytes
  416.                          : 421,888 (1.3%) unavailable for file allocation
  417.  
  418.                Branch    : 32,360,448 bytes in 1,698 files, and 50 dirs
  419.                          : Occupies 96.7% of the total drive
  420.                          : Slack space 2,100,550 bytes or 6.5%
  421.  
  422.  
  423. BTS Utilities User Manual                                   (DRIVES) Page 9
  424. ___________________________________________________________________________
  425.  
  426.  
  427. 4.0 DRIVES                                                             V1.1
  428. ___________________________________________________________________________
  429.  
  430.     PURPOSE:   Displays parameters for all of the allocated disk drives.
  431.  
  432.  
  433.     USAGE:     drives [-f]
  434.  
  435.                where:
  436.  
  437.                     -f        include diskette data in the report
  438.  
  439.  
  440.     SUMMARY:   Produces a report with a summary line for each allocated
  441.                logical drive in the system.
  442.  
  443.                If the -f option is not specified, the particular diskette
  444.                drive type is determined but the drive is not physically
  445.                accessed.  With the -f argument, the diskette drives must
  446.                have valid diskettes mounted.  Fields that are not available
  447.                because the diskette was not accessed are shown as ---.
  448.  
  449.                Information contained within the report includes:
  450.  
  451.                     drive     where multiple drive letters all reference
  452.                               the same physical drive, only one line is
  453.                               produced.  This can occur through the DOS
  454.                               SUBST command or a network mapping.
  455.  
  456.                     capacities   for each drive, the total capacity and the
  457.                               free space, as a percentage and in MegaBytes
  458.                               (1 MegaByte = 1,024,000 bytes).
  459.  
  460.                     type      whether a hard disk, ramdisk, network drive,
  461.                               Stacker (the pseudo drive created by the
  462.                               STACKER disk compression program), or one of
  463.                               the six diskette types (if the -f option is
  464.                               used, this is the type of the diskette,
  465.                               otherwise it is the type of the drive).
  466.  
  467.                     volume    disk drive name.
  468.  
  469.                Following the report are totals for the total capacity, and
  470.                free space (Mb and %).  These totals do not include the
  471.                diskette drives or ramdisks, and each physical disk is only
  472.                included once.
  473.  
  474.  
  475. BTS Utilities User Manual                                  (DRIVES) Page 10
  476. ___________________________________________________________________________
  477.  
  478.  
  479.  
  480.     EXAMPLE:   Display parameters for currently assigned drives.  Do not
  481.                physically access the diskette drives:
  482.  
  483.                  DRIVES
  484.  
  485.                          free    used   capacity
  486.                  drive   (Mb)     (%)     (Mb)       type     volume name
  487.                  ─────  ──────   ─────  ────────   ────────  ────────────
  488.                    a:     ---     ---     1.20    1.2Mb 5¼   ---
  489.                    b:     ---     ---     0.36    360KB 5¼   ---
  490.                    c:    1.23    96.3    32.67    Hard Disk  SYS
  491.                    d:    4.96    85.2    32.67    Hard Disk  WRK
  492.                    e:    0.07    92.8     0.97    Hard Disk  TINYDRIV.E
  493.                    f:    0.08    81.3     0.41    Ram Disk   MS-RAMDR.IVE
  494.              g: j: y:    8.83    96.4   246.29    Net Drive  USR
  495.           h: w: x: z:   10.48    95.6   238.80    Net Drive  PUBLIC
  496.                    k:    2.34    99.0   225.28    Net Drive  DEV
  497.                    l:   17.09    93.6   262.13    Net Drive  NET-WRK
  498.                    m:   15.00    80.2    75.78    Net Drive  VCS
  499.                        ══════   ═════  ═══════
  500.                         59.99    94.7  1112.88
  501.  
  502.  
  503.  
  504. BTS Utilities User Manual                                 (MAKEBAT) Page 11
  505. ___________________________________________________________________________
  506.  
  507.  
  508. 5.0 MAKEBAT                                                            V1.1
  509. ___________________________________________________________________________
  510.  
  511.     PURPOSE:   Creates batch files based on a template file and a selection
  512.                of files from a specified directory.
  513.  
  514.  
  515.     USAGE:     MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  516.  
  517.                where:
  518.  
  519.                     [d:][path]matchlist
  520.                               selection criteria for files to be applied
  521.                               to the template.
  522.  
  523.                     @template.ext
  524.                               a template file containing text lines with
  525.                               embedded variables that reference selected
  526.                               files.  If not provided, the input is
  527.                               assumed to come from STDIN.  No standard
  528.                               extension is used.
  529.  
  530.                     -arg1 -arg2 . . .
  531.                               these arguments (stripped of the - prefix)
  532.                               are used by variable references within the
  533.                               template file.
  534.  
  535.  
  536.     SUMMARY:   While intended for creating batch files, the facility can be
  537.                used for a variety of purposes.  The basic operation is that
  538.                for each file specified by the match list, the text lines
  539.                from the template (or STDIN) are copied to STDOUT.  Each of
  540.                the text lines within the template may contain variables (of
  541.                the form $x) which are replaced with some attribute of the
  542.                matched file.
  543.  
  544.                Within the template file, whether it was an actual file or
  545.                STDIN, each line is processed once for each selected file
  546.                except for lines prefixed with "[" or "]".  These are
  547.                processed once only, before and after the balance of the
  548.                template processing respectively.
  549.  
  550.  
  551. BTS Utilities User Manual                                 (MAKEBAT) Page 12
  552. ___________________________________________________________________________
  553.  
  554.  
  555.                The text lines within the template file can contain two
  556.                letter variables consisting of a "$" followed by a letter.
  557.                These are similar to the <CTRL x> variables available within
  558.                ToolBOX.  The variables, which can reference the current
  559.                path or the matchlist path, are:
  560.  
  561.                     $D  current drive letter
  562.                     $P  current path
  563.                     $d  matchlist drive letter
  564.                     $p  matchlist path
  565.                     $n  filename (to 8 characters)
  566.                     $x  extension (to 3 characters)
  567.                     $f  minimized file name (for $d:$p\$n.$x)
  568.                     $$  a single literal $
  569.  
  570.                Variables can also reference the optional arguments
  571.                specified on the command line:
  572.  
  573.                     $1   the first argument -arg1
  574.                     $2   the second argument -arg2
  575.                     ...
  576.                     $9   the ninth argument
  577.  
  578.                When using STDIN, type <CTRL Z> to terminate the input data.
  579.  
  580.                A summary line is produced showing the number of input
  581.                lines, files, and output lines.  This is issued to STDERR so
  582.                that it will not be redirected.
  583.  
  584.  
  585.     EXAMPLE:   Assume a template file (MAKEBAT.TST) containing:
  586.  
  587.                     [LEADING LINE
  588.                     ]TRAILING LINE
  589.                     TESTING - CURRENT DRIVE      : $$D = $D
  590.                             - CURRENT PATH       : $$P = $P
  591.                             - REFERENCED DRIVE   : $$d = $d
  592.                             - REFERENCED PATH    : $$p = $p
  593.                             - REFERENCED NAME    : $$n = $n
  594.                             - REFERENCED .EXT    : $$x = $x
  595.                             - MINIMIZED FILENAME : $$f = $f
  596.                             - arg1               : $$1 = $1
  597.                             - arg2               : $$2 = $2
  598.                             - arg3               : $$3 = $3
  599.                             - arg4               : $$4 = $4
  600.  
  601.  
  602. BTS Utilities User Manual                                 (MAKEBAT) Page 13
  603. ___________________________________________________________________________
  604.  
  605.  
  606.                Now execute the following command from the d:\utl directory.
  607.                Assume this matches two files, TBOX.EXE and TBOX.DOC.
  608.  
  609.                  >makebat c:\bin\tbox.* @makebat.txt -first -second -third
  610.  
  611.                The summary line is
  612.  
  613.                     Lines in 13:   Files matched 2:    Lines output 34
  614.  
  615.                The output to STDOUT is:
  616.  
  617.                     LEADING LINE
  618.                     TESTING - CURRENT DRIVE      : $D = D
  619.                             - CURRENT PATH       : $P = \UTL
  620.                             - REFERENCED DRIVE   : $d = C
  621.                             - REFERENCED PATH    : $p = \BIN
  622.                             - REFERENCED NAME    : $n = TBOX
  623.                             - REFERENCED .EXT    : $x = DOC
  624.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.DOC
  625.                             - arg1               : $1 = first
  626.                             - arg2               : $2 = second
  627.                             - arg3               : $3 = third
  628.                             - arg4               : $4 =
  629.                     TESTING - CURRENT DRIVE      : $D = D
  630.                             - CURRENT PATH       : $P = \UTL
  631.                             - REFERENCED DRIVE   : $d = C
  632.                             - REFERENCED PATH    : $p = \BIN
  633.                             - REFERENCED NAME    : $n = TBOX
  634.                             - REFERENCED .EXT    : $x = EXE
  635.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.EXE
  636.                             - arg1               : $1 = first
  637.                             - arg2               : $2 = second
  638.                             - arg3               : $3 = third
  639.                             - arg4               : $4 =
  640.                     TRAILING LINE
  641.  
  642.  
  643.  
  644. BTS Utilities User Manual                                  (ONPATH) Page 14
  645. ___________________________________________________________________________
  646.  
  647.  
  648. 6.0 ONPATH                                                             V1.0
  649. ___________________________________________________________________________
  650.  
  651.     PURPOSE:   Determines if any files, and which ones, will be accessed
  652.                through the search path.
  653.  
  654.     USAGE:     ONPATH  matchlist [=setvariable] ...
  655.  
  656.                where:
  657.  
  658.                     matchlist      list of one or more file specifications
  659.                                    to be searched for.
  660.  
  661.                     =setvariable   alternate set variable in place of PATH.
  662.  
  663.  
  664.     SUMMARY:   ONPATH will search through the directories in the PATH
  665.                variable to find the files identified in the matchlist.  The
  666.                search is carried out in the same order as the DOS search
  667.                for program names; that is the current directory and then
  668.                the PATH directories starting from the first.  A summary
  669.                line is displayed as each valid file match is detected.
  670.  
  671.                If multiple matches for programs occur, it is the first that
  672.                would be executed if the program name were entered without a
  673.                path specification.  Also, if multiple executable files are
  674.                found within the same directory, DOS gives precedence to the
  675.                .COM, then .EXE, and finally the .BAT variation.
  676.  
  677.                While the default is to search the PATH variable, any
  678.                alternate set variable that follows the same format can be
  679.                specified: for example =LIB, =TMP, or =INCLUDE.  =PATH is
  680.                assumed if no other set variables are referenced.
  681.  
  682.  
  683.     EXAMPLE:   To find all files on the PATH which start with "tbox"
  684.                followed by anything, and which have any extension:
  685.  
  686.                     onpath tbox*
  687.  
  688.                         120,466 Jly14/92 12:29 D:\BIN\TBOX.DOC
  689.                          57,723 Jly14/92 01:00 D:\BIN\TBOX.EXE
  690.                          50,367 Jly14/92 01:12 D:\BIN\TBOXCFG.EXE
  691.  
  692.  
  693.  
  694. BTS Utilities User Manual                                 (TOASCII) Page 15
  695. ___________________________________________________________________________
  696.  
  697.  
  698. 7.0 TOASCII                                                            V1.1
  699. ___________________________________________________________________________
  700.  
  701.     PURPOSE:   Filter for converting text files with IBM extended
  702.                characters to standard ASCII text.
  703.  
  704.     USAGE:     toascii  <input  >output
  705.  
  706.     SUMMARY:   The primary purpose of this utility is to make text files
  707.                that contain line drawing and other extended characters,
  708.                acceptable for printers that only support standard ASCII
  709.                characters.  This applies for example to the text of this
  710.                document as well as data output by the DRIVES and DIRS
  711.                utilities.
  712.  
  713.                The TOASCII utility program translates text from STDIN to
  714.                STDOUT.  Embedded characters that are outside the standard
  715.                ASCII text range are translated to the closest equivalent
  716.                within the range.  The acceptable ASCII characters are those
  717.                in the range 32 through 126, plus carriage return, linefeed,
  718.                tab and EOF.
  719.  
  720.                The general translations performed are:
  721.  
  722.                     o line drawings to | - or +
  723.                     o accented characters to the unaccented equivalent
  724.                     o numeric type characters to #
  725.                     o shaded and bullet characters to #
  726.                     o all other characters to ?
  727.  
  728.                Substitutions are always one for one; the file size will not
  729.                change.
  730.  
  731.  
  732.     EXAMPLE:   1) To convert this document to a file containing only
  733.                   standard ASCII characters:
  734.  
  735.                      toascii <utils.doc  >utils.asc
  736.  
  737.  
  738.                2) To convert this document directly to the printer:
  739.  
  740.                      toascii <utils.doc  >prn
  741.  
  742.  
  743.                3) Use pipes to produce a paginated ASCII screen version of
  744.                   the DIRS program output:
  745.  
  746.                      dirs \ /p | toascii | more
  747.  
  748. BTS Utilities User Manual                                    (TREE) Page 16
  749. ___________________________________________________________________________
  750.  
  751.  
  752. 8.0 TREE                                                               V1.2
  753. ___________________________________________________________________________
  754.  
  755.     PURPOSE:   Full screen program to provide a visual representation of a
  756.                directory structure.
  757.  
  758.     USAGE:     tree path @cfgfile -Dpath  -V[b m c s e v]  -C[m c g]
  759.                     -X[a#][c][dD][i][t#][uU]
  760.  
  761.                where (all arguments are optional):
  762.  
  763.                     path      initial display drive and/or directory.
  764.                               Defaults to current directory.
  765.  
  766.                     @cfgfile  full configuration pathname.  Color and
  767.                               default-command-line- argument components
  768.                               are used.
  769.  
  770.                     -Dpath    directory for BTS-TREE.DAT.  Defaults to
  771.                               first directory on PATH.
  772.  
  773.                     -Video[bIOS mONOCHROME sNOW cGA eGA vGA]
  774.                               Refer to the VIEW utility in Section 9.0
  775.                               for details.  No argument is provided
  776.                               for screen lines as TREE automatically
  777.                               adapts to the DOS setting, whether 25, 43,
  778.                               or 50 lines.
  779.  
  780.                     -Color[mONOCHROME cOLOR gRAYSCALE]
  781.                               Refer to the VIEW utility in Section 9.0
  782.                               for details.
  783.  
  784.  
  785.                     -X        eXecute flags (Default = -Xa15Dt7U)
  786.  
  787.                          a#        Audio, where # enables error sounds for
  788.                                    1(border) + 2(syntax) + 4(execution)
  789.                                    +8 (directory screen update).
  790.  
  791.                          c         force Current drive tree initialization.
  792.  
  793.                          d / D     use Datafile.
  794.  
  795.                          i         force Initialization of all drive trees.
  796.  
  797.                          t#        set filelist update wait Time
  798.                                    (tenths/sec).
  799.  
  800.                          u / U     Update datafile enable.
  801.  
  802.  
  803.  
  804. BTS Utilities User Manual                                    (TREE) Page 17
  805. ___________________________________________________________________________
  806.  
  807.  
  808.     SUMMARY:   The TREE utility provides a windowed visual representation
  809.                of the disk directory structure.  Commands are provided to:
  810.  
  811.                     o scroll through the directory structure.
  812.  
  813.                     o change the display to an alternate drive.
  814.  
  815.                     o move to a particular directory.
  816.  
  817.                     o display the list of files within a directory, or view
  818.                       the contents of individual files.
  819.  
  820.  
  821.                GENERAL OPERATION
  822.                _________________
  823.  
  824.                As shown in the following sample screen, the TREE window
  825.                overlays the central portion of the DOS screen.  The display
  826.                consists of three separate subwindows.  At any time, the
  827.                active cursor is in either the Directory Tree or the File
  828.                List window.  The three windows are:
  829.  
  830.                     Top Header
  831.  
  832.                          Shows the current drive and volume name, time,
  833.                          free space on the current drive (as a percentage),
  834.                          and the full directory path for the directory at
  835.                          the current cursor position.
  836.  
  837.                          It also contains the byte total for the files in
  838.                          the File List window - see below.
  839.  
  840.                     Directory Tree
  841.  
  842.                          This lower left window pictorially displays the
  843.                          directory tree structure.  The entry for the
  844.                          currently selected cursor position is highlighted,
  845.                          and a diamond () is placed to the left of the
  846.                          current directory.  Directory entries within each
  847.                          level are ordered alphabetically.
  848.  
  849.                     File List
  850.  
  851.                          This lower right window displays an alphabetical
  852.                          list of the files within the directory at the
  853.                          current Directory Tree cursor position.  This data
  854.                          changes each time the Directory Tree window cursor
  855.                          is moved.  See below for a complete explanation.
  856.  
  857.                By default, when the utility is initially started the
  858.                display shows the current drive with the cursor at the
  859.                current directory.  The command line "path" argument can be
  860.                used to override this initial default drive and/or path.
  861.  
  862.  
  863. BTS Utilities User Manual                                    (TREE) Page 18
  864. ___________________________________________________________________________
  865.  
  866.  
  867.                       ┌Free 1% ─────── C:(SYS) ──────13:01:38┐
  868.                       │ \DOS                         540,004 │
  869.                       └──────────────────────────────────────┘
  870.                       ╔════════════════════════╗╔════════════╗
  871.                       ║├─BIN                   ║║ANSI.SYS    ║
  872.                       ║│ ├─DATA                ║║APPEND.EXE  ║
  873.                       ║│ └─DOC                 ║║ASSIGN.COM  ║
  874.                       ║├─DEV                   ║║ATTRIB.EXE  ║
  875.                       ║├DOS                   ║║BASRUN.EXE  ║
  876.                       ║├─PKG                   ║║BRUN30.EXE  ║
  877.                       ║│ ├─LNL                 ║║CHKDSK.COM  ║
  878.                       ║│ ├─MAVIS               ║║COMMAND.COM ║
  879.                       ║│ ├─MSC6                ║║COMMAND.ORG ║
  880.                       ║│ │ └─LIB-DATA          ║║COMMAND.PIF ║
  881.                       ║│ ├─PCPLUS              ║║COMP.COM    ║
  882.                       ║│ │ ├─1200B             ║║CURRENT.STS ║
  883.                       ║│ │ ├─CFG               ║║DEBUG.COM   ║
  884.                       ║│ │ └─DATA              ║║DISKCOMP.COM║
  885.                       ║│ ├─PCTOOLS             ║║DISKCOPY.COM║
  886.                       ╚════════════════════════╝╚════════════╝
  887.  
  888.                The optional command line argument "@cfgfile" specifies a
  889.                configuration file as created by TBOXCFG.EXE.  The color
  890.                settings and default-command-line-arguments within this file
  891.                are used, with all other settings being discarded.  Any
  892.                required path or extension for the configuration file must
  893.                be explicitly specified.
  894.  
  895.                On startup, the Directory Tree window is active.  Subse-
  896.                quently the user can switch back and forth between the
  897.                Directory Tree and File List windows, with the active window
  898.                being indicated by the highlighted border.
  899.  
  900.                <F1> can be entered at any time.  It produces several Help
  901.                screens of information that describe the available keyboard
  902.                controls and command line arguments.  Use <ESC> to terminate
  903.                the Help screens.
  904.  
  905.                Enter <ESC> or <ALT q> to exit from the program without
  906.                making any directory changes.  No verification prompts are
  907.                issued.
  908.  
  909.  
  910.  
  911. BTS Utilities User Manual                                    (TREE) Page 19
  912. ___________________________________________________________________________
  913.  
  914.  
  915.                DIRECTORY TREE WINDOW
  916.                _____________________
  917.  
  918.                Within the Directory Tree window, the user has a number of
  919.                single key commands available:
  920.  
  921.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>,
  922.                     <HOME><HOME>, <END><END>
  923.  
  924.                          These vertical motion commands move the cursor for
  925.                          the selected directory.  The motion is independent
  926.                          of the actual tree structure.  For example <DOWN>
  927.                          moves to the next adjacent directory, regardless
  928.                          of whether it is at the same, or a higher or lower
  929.                          level.
  930.  
  931.                     <RIGHT>
  932.  
  933.                          Activate the File List window with data for the
  934.                          directory selected at the current cursor.
  935.  
  936.                     <RETURN>
  937.  
  938.                          Change the current drive and directory to the
  939.                          directory at the selected cursor position, and
  940.                          then exit from the TREE program.
  941.  
  942.                     <SHIFT UP>, <SHIFT DOWN>
  943.  
  944.                          Move to the previous or next directory respect-
  945.                          ively that exists at the same level as the current
  946.                          directory cursor.
  947.  
  948.                     <SHIFT LEFT>, <SHIFT RIGHT>
  949.  
  950.                          Move to the next directory at a higher (i.e.
  951.                          parent) or lower (i.e. first subdirectory) level
  952.                          respectively.
  953.  
  954.                     <mid keypad 5>
  955.  
  956.                          Equivalent to <SHIFT UP> and <SHIFT DOWN> above
  957.                          except moves in same direction as the previously
  958.                          used cursor key.
  959.  
  960.                     <letter>
  961.  
  962.                          Fast directory find.  Cursor is moved to the next
  963.                          directory that starts with the entered letter
  964.                          (actually any valid filename character).  Case is
  965.                          not significant.  The directory tree is treated as
  966.                          a circular list with automatic wrap around.
  967.  
  968.  
  969. BTS Utilities User Manual                                    (TREE) Page 20
  970. ___________________________________________________________________________
  971.  
  972.  
  973.                     <CTRL letter>
  974.  
  975.                          Switch the tree display to the drive represented
  976.                          by the letter.  For example, <CTRL D> to move to
  977.                          drive D.  An error tone is issued if the requested
  978.                          drive does not exist.
  979.  
  980.                     <keypad ->, <keypad +>
  981.  
  982.                          The TREE utility maintains a list of the last
  983.                          accessed disk drives.  These keys update the
  984.                          display in a circular manner respectively to the
  985.                          next previous or oldest drive in the list.
  986.  
  987.                     <CTRL PGDN>, <CTRL PGUP>
  988.  
  989.                          These keys update the display to the next adjacent
  990.                          logical disk drive - alphabetically down or up
  991.                          respectively.  This sequence automatically wraps
  992.                          around after the lowest or highest drive.  For
  993.                          example, if the user is on drive B: and only
  994.                          drives A:, B:, and C: exist, then successively
  995.                          entering <CTRL RIGHT> cycles to C:, A:, B:, C:,
  996.                          A:, and so on.
  997.  
  998.                Refer to the General Product Overview Manual for alternate
  999.                keys for the <SHIFT cursor> and <mid pad 5> keystrokes which
  1000.                may not be available on all PCs.
  1001.  
  1002.                FILE LIST WINDOW
  1003.                _________________
  1004.  
  1005.                The File List window contains an alphabetical list of the
  1006.                files for the directory identified by the cursor location in
  1007.                the Directory Tree window.
  1008.  
  1009.                The File List window can be in any of three states:
  1010.  
  1011.                     Not-used
  1012.  
  1013.                          To prevent unnecessary disk activity and screen
  1014.                          updates, the File List window is not updated until
  1015.                          the user stops scrolling through the directory
  1016.                          tree for a predefined duration.  By default this
  1017.                          is seven tenths of a second, or slightly higher
  1018.                          than the default initial keyboard repeat rate.  To
  1019.                          suit personal tastes, this duration can be changed
  1020.                          to a higher or lower rate by the -Xt# command line
  1021.                          argument.
  1022.  
  1023.                          When Not-used, the File List window is clear and
  1024.                          the Tree Directory window border is highlighted.
  1025.                          The directory total in the header window is
  1026.                          blanked.
  1027.  
  1028.  
  1029. BTS Utilities User Manual                                    (TREE) Page 21
  1030. ___________________________________________________________________________
  1031.  
  1032.  
  1033.                     Filled-in
  1034.  
  1035.                          The File List window is filled-in with an alpha-
  1036.                          betical list of the files when the time delay for
  1037.                          the deferred update expires.  The Directory Tree
  1038.                          window is still active.
  1039.  
  1040.                          At this time the directory total field in the
  1041.                          header is set to the total number of bytes for all
  1042.                          files within the directory.  The field is set to
  1043.                          "No files" if there are no files.
  1044.  
  1045.                          There is a current maximum of 400 files within the
  1046.                          window.  If this is exceeded, the first 400 are
  1047.                          used, the error tone is issued, and a "*" is
  1048.                          placed after the total field in the header.
  1049.  
  1050.                     Active
  1051.  
  1052.                          If there is a need to view a file, see the file
  1053.                          list quicker, or scroll through the file list,
  1054.                          then activate the File List window.  Do this by
  1055.                          entering <RIGHT> from the Tree Directory window.
  1056.                          If the window is not already filled-in the file
  1057.                          list is initially updated as above.  The active
  1058.                          File List window is identified by the highlighted
  1059.                          border and a cursor on the initial file entry.
  1060.  
  1061.                          Scroll through the file list as desired.  As for
  1062.                          the Tree Directory window, enter <any letter> as a
  1063.                          fast file find.  The cursor will move to the next
  1064.                          file entry that starts with the entered letter.
  1065.  
  1066.                          To view the file at the cursor, enter <RETURN>.
  1067.                          This will initiate the VIEW.EXE utility.
  1068.  
  1069.                          Enter <LEFT> to return to and reactivate the Tree
  1070.                          Directory window.
  1071.  
  1072.  
  1073.                BTS-TREE.DAT Data File
  1074.                ______________________
  1075.  
  1076.                To optimize speed, the utility maintains a data file with
  1077.                the most recent representation of the directory structure
  1078.                for all drives.  This file, BTS-TREE.DAT, is automatically
  1079.                updated as required to reflect changes in the directory
  1080.                structure.
  1081.  
  1082.                The first time the TREE utility is run, it will create the
  1083.                file in the first directory that exists on the PATH.  A
  1084.                window message is generated indicating where this data file
  1085.                is being created.  On subsequent times, the utility searches
  1086.                the current and then PATH directories for this data file.
  1087.                After the data file is initially created you may wish to
  1088.  
  1089. BTS Utilities User Manual                                    (TREE) Page 22
  1090. ___________________________________________________________________________
  1091.  
  1092.  
  1093.                move it to another directory on the PATH.  Especially if the
  1094.                first directory corresponds to a ramdisk.
  1095.  
  1096.                The -Dpath command line argument can be used to explicitly
  1097.                specify a directory for the BTS-TREE.DAT file.  If the file
  1098.                does not exist in this directory, it will be created.
  1099.  
  1100.                The -Xd command line argument inhibits use of the data file.
  1101.                With this setting, the data file is ignored and the disk
  1102.                structure is re-analyzed in its entirety each time a new
  1103.                drive tree is displayed.
  1104.  
  1105.  
  1106.                DATA FILE UPDATES
  1107.                _________________
  1108.  
  1109.                Normally, changes within the directory tree structure are
  1110.                automatically detected and adjusted for.  The tree
  1111.                information for the drives is initially read from the BTS-
  1112.                TREE.DAT file.  Each time the file list window is updated,
  1113.                the accompanying directories are compared to the BTS-
  1114.                TREE.DAT version.  If there is a difference, this branch of
  1115.                the tree is automatically updated.  An audible tone, best
  1116.                characterized as a "sproing", is issued when the update
  1117.                occurs.  The BTS-TREE.DAT file is updated with all such
  1118.                changes prior to displaying the next drive.
  1119.  
  1120.                Two command line -X subarguments are available for control-
  1121.                ling the use of the BTS-TREE.DAT datafile:
  1122.  
  1123.                     [dD]
  1124.  
  1125.                          This argument specifies whether to use (-XD) or
  1126.                          not use (-Xd) the BTS-TREE.DAT data file.  If not,
  1127.                          then each time the directory tree is displayed, it
  1128.                          is created by analyzing the entire disk structure.
  1129.                          This is considerably slower than reading the
  1130.                          equivalent information from the BTS-TREE.DAT file;
  1131.                          however, it does guarantee that the entire direct-
  1132.                          ory tree information is correct immediately.
  1133.  
  1134.                          The directory information for removable diskettes
  1135.                          is never stored in the BTS-TREE.DAT file.  It is
  1136.                          always created directly from the directory
  1137.                          structure on the diskette.
  1138.  
  1139.                     [uU]
  1140.  
  1141.                          Controls whether the BTS-TREE.DAT file is to be
  1142.                          updated (-XU) or not (-Xu) with the changes
  1143.                          detected for any of the directories.  Note the
  1144.                          screen display is always updated, this option just
  1145.                          controls whether the changes are to be recorded.
  1146.                          This feature is useful if there are temporary
  1147.                          drive reassignments.
  1148.  
  1149. BTS Utilities User Manual                                    (TREE) Page 23
  1150. ___________________________________________________________________________
  1151.  
  1152.  
  1153.  
  1154.                     [c]
  1155.  
  1156.                          Requests that the directory tree for the current
  1157.                          drive be updated immediately before the program
  1158.                          starts.  This is useful if there are known changes
  1159.                          that can be handled up front rather than waiting
  1160.                          for each to be detected individually later.
  1161.  
  1162.                     [i]
  1163.  
  1164.                          Requests that the directory tree for all drives be
  1165.                          updated immediately.
  1166.  
  1167.  
  1168.                The BTS-TREE.DAT updates identified above can be requested
  1169.                at any time through the keyboard by:
  1170.  
  1171.                     <ALT c>
  1172.  
  1173.                          Update the directory tree for the current drive.
  1174.                          This is similar to the -xc command line argument.
  1175.  
  1176.                     <ALT i>
  1177.  
  1178.                          Update the directory trees for all non-removable
  1179.                          drives.  This is similar to the -xi command line
  1180.                          argument.
  1181.  
  1182.  
  1183.  
  1184.     EXAMPLE:   To start the TREE program for drive d: with the cursor
  1185.                starting at the \dos directory, disabling the audible tones
  1186.                for syntax errors and the automatic directory updates,
  1187.                using color information from the c:\bin\my.cfg configuration
  1188.                file, and using the c:\data\bts-tree.dat data file:
  1189.  
  1190.                     tree d:\dos -xa5 @c:\bin\my.cfg -Dc:\data
  1191.  
  1192.  
  1193.  
  1194. BTS Utilities User Manual                                    (VIEW) Page 24
  1195. ___________________________________________________________________________
  1196.  
  1197.  
  1198. 9.0 VIEW                                                               V1.1
  1199. ___________________________________________________________________________
  1200.  
  1201.     PURPOSE:   Provides a mechanism for viewing the contents of text files.
  1202.  
  1203.     USAGE:     view [d:][path]matchlist @cfgfile
  1204.                  -V[b m c s e v][25 43 50]  -C[m c g]  -X[a#][iI][rR]
  1205.  
  1206.                where (all arguments are optional):
  1207.  
  1208.                     [d:][path]matchlist
  1209.                               specification for one or more files to be
  1210.                               viewed.  There are no assumed extensions.
  1211.  
  1212.  
  1213.                     @cfgfile  full configuration pathname.  Color, command-
  1214.                               line-argument, and banner name components are
  1215.                               used.  No default extensions are assumed.
  1216.  
  1217.                     -V[b m c s e v] [25 43 50]
  1218.  
  1219.                               By default, VIEW will select a video mode
  1220.                               applicable to the hardware and DOS state at
  1221.                               program startup.  The -V argument is used to
  1222.                               override this selection in order to use a
  1223.                               different monitor type (m,c,s,e,v), to use a
  1224.                               different output technique (b,s) or to alter
  1225.                               the screen resolution (25, 43, 50).
  1226.  
  1227.                          b    use BIOS output routines.  Normally video
  1228.                               data is issued directly to the video card.
  1229.                               Using the BIOS will slow down the video
  1230.                               update rate but may be necessary for some
  1231.                               incompatible systems.
  1232.  
  1233.                          m    assume monochrome text (MDA) video card.
  1234.  
  1235.                          c, e, or v
  1236.                               assume color graphics (CGA, EGA, or VGA)
  1237.                               video card.  All 3 settings have the same
  1238.                               effect.
  1239.  
  1240.                          s    assume CGA graphics video card and do
  1241.                               processing to remove snow on screen.  This
  1242.                               option slows down the update rate and should
  1243.                               be avoided unless necessary.
  1244.  
  1245.                          25   assume 25 visible lines of text.
  1246.  
  1247.                          43   assume EGA/VGA card and use the 43 line by 80
  1248.                               column mode.
  1249.  
  1250.                          50   assume VGA card and use the 50 line by 80
  1251.                               column mode.
  1252.  
  1253.  
  1254. BTS Utilities User Manual                                    (VIEW) Page 25
  1255. ___________________________________________________________________________
  1256.  
  1257.  
  1258.                -C[m c g]
  1259.  
  1260.                     Selects one of the predefined color tables.  If the
  1261.                     argument is not specified the current video hardware
  1262.                     configuration is examined and m or c assumed.  Any
  1263.                     setting can be used with any monitor.  Also, there is
  1264.                     no connection between the -C and -V settings.
  1265.  
  1266.                          m    monochrome text displays.
  1267.  
  1268.                          c    color displays.
  1269.  
  1270.                          g    gray scale displays, that is LCD or mono-
  1271.                               chrome monitors using color video cards.
  1272.                               This is greatly affected by the particular
  1273.                               combination of video card and display device.
  1274.  
  1275.  
  1276.                -X        eXecute flags (Default = -Xa7cir)
  1277.  
  1278.                          a#        Audio, where # enables error sounds for
  1279.                                    1(border) + 2(syntax) + 4(execution)
  1280.  
  1281.                          c / C     make text searches Case sensitive.
  1282.  
  1283.                          iI        exit Immediately without a verification
  1284.                                    prompt when <ESC> is entered.  <ALT q>
  1285.                                    always exits immediately, regardless
  1286.                                    of this setting.
  1287.  
  1288.                                    The I setting is primarily for the use
  1289.                                    of the ToolBOX and TREE programs which
  1290.                                    "appear" to integrate VIEW into their
  1291.                                    interface.
  1292.  
  1293.                          r / R     Restore the original DOS screen on exit,
  1294.                                    the alternative (r) being to leave the
  1295.                                    VIEW screen unaltered.
  1296.  
  1297.  
  1298.  
  1299. BTS Utilities User Manual                                    (VIEW) Page 26
  1300. ___________________________________________________________________________
  1301.  
  1302.  
  1303.     SUMMARY:   The VIEW utility provides a convenient mechanism for
  1304.                scrolling through the contents of a text file.  As
  1305.                illustrated in the following sample screen, the utility
  1306.                produces a full screen display of the text.  Commands are
  1307.                available to:
  1308.  
  1309.                     o scroll through the text contents, vertically and
  1310.                       horizontally
  1311.  
  1312.                     o search for specific text strings
  1313.  
  1314.                     o specify and view additional text files
  1315.  
  1316.                     o alter screen parameters
  1317.  
  1318.                While optimized for standard text in lines of less than 78
  1319.                characters, VIEW can be used to examine binary information.
  1320.  
  1321.  
  1322.  
  1323.     ╒═The Binary Toolshed ════════ VIEW ══════════ Tue Jly 14/92 23:12:54═╕
  1324.     │                                                                     │
  1325.     │This is a sample text file.  The text lines demonstrate the use of   │
  1326.     │the VIEW.EXE utility to examine or browse the contents of such a     │
  1327.     │data file.                                                           │
  1328.     │                                                                     │
  1329.     │The ┌───────────────────────────┐le up to the available memory limit.│
  1330.     │It a│File list          <ALT f> │lection, and text searches.         │
  1331.     │    │set file Matchlist <ALT m> │                                    │
  1332.     │    │Next┌──Enter filename matchlist──────────────┐                  │
  1333.     │    │Prev│sample2.txt                             │                  │
  1334.     │    │Sear└────────────────────────────────────────┘                  │
  1335.     │    │set search Case            │                                    │
  1336.     │    │set search Direction       │                                    │
  1337.     │    └───────────────────────────┘                                    │
  1338.     │                                                                     │
  1339.     │                                                                     │
  1340.     │                                                                     │
  1341.     │                                                                     │
  1342.     │                                                                     │
  1343.     │                                                                     │
  1344.     │                                                                     │
  1345.     │                                                                     │
  1346.     │                                                                     │
  1347.     ╘═SAMPLE.TXT═════════ Jly14/92 23:12══════════════════════(8)       8═╛
  1348.  
  1349.     EXAMPLE VIEW SCREEN : Popup Menu With Text Entry Window For Matchlist
  1350.  
  1351.  
  1352.  
  1353.  
  1354. BTS Utilities User Manual                                    (VIEW) Page 27
  1355. ___________________________________________________________________________
  1356.  
  1357.  
  1358.                GENERAL OPERATION
  1359.                _________________
  1360.  
  1361.                The VIEW screen contains status information on the top and
  1362.                bottom border lines.
  1363.  
  1364.                All of the file specific data is contained on the bottom
  1365.                line.  This includes the data file pathname, the last
  1366.                modification date, and on the lower right the line number of
  1367.                the last line on the screen.  If the last line number in the
  1368.                file is known, it is shown in parenthesis just to the left
  1369.                of this number.  Rather than reading all of the data
  1370.                initially, VIEW only reads subsequent sections of the data
  1371.                file when warranted.  A "***READING**" status indicator is
  1372.                shown on the bottom line when this occurs.  Only when the
  1373.                last line of the file has been been read will the parenthe-
  1374.                sized number appear.  If no data file is open, then the
  1375.                bottom status line is blank.
  1376.  
  1377.                While viewing the text file, the user has a number of single
  1378.                key commands available:
  1379.  
  1380.                     <F1>
  1381.  
  1382.                          Produces several Help screens of information that
  1383.                          describe the available keyboard controls and the
  1384.                          command line arguments.  Use <ESC> to terminate
  1385.                          the Help screens.
  1386.  
  1387.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>
  1388.  
  1389.                          These vertical motion commands move the screen
  1390.                          view in the anticipated direction - by one line,
  1391.                          one page, or to the extreme limits of the file.
  1392.  
  1393.  
  1394.                     <LEFT>, <RIGHT>
  1395.  
  1396.                          Normally the text window displays the first 78
  1397.                          characters of each line.  Text past column 78 can
  1398.                          be viewed by entering <RIGHT>.  This scrolls the
  1399.                          entire display right by 10 characters.  When the
  1400.                          text is scrolled right, the maximum line number
  1401.                          field on the bottom line is replaced by an
  1402.                          indicator for how far right the window is scroll-
  1403.                          ed.  For example if the screen is scrolled right
  1404.                          by two steps, then the field shows "(COLS+020)" to
  1405.                          indicate the viewable screen is actually showing
  1406.                          columns 21 through 98 of each line.  Use <LEFT> to
  1407.                          scroll back.
  1408.  
  1409.  
  1410.                     <ALT f>, <ALT m>, <keypad +>, <keypad ->
  1411.  
  1412.                          See the following File Operations section.
  1413.  
  1414. BTS Utilities User Manual                                    (VIEW) Page 28
  1415. ___________________________________________________________________________
  1416.  
  1417.  
  1418.  
  1419.  
  1420.                     <Alt g>, <ALT s>, <RETURN>, <CTRL RETURN>, <character>
  1421.  
  1422.                          See the Goto/Search Operations section.
  1423.  
  1424.                     </>
  1425.  
  1426.                          See the Popup Menu section.
  1427.  
  1428.  
  1429.                     <ALT 2>, <ALT 4>, <ALT 5>, <ALT 0>
  1430.  
  1431.                          These commands set the number of screen lines for
  1432.                          the VIEW display - to 25, 43, and 50 lines
  1433.                          respectively.  The <ALT 0> setting restores the
  1434.                          screen lines to the same setting DOS had when the
  1435.                          VIEW program was started.
  1436.  
  1437.                     <ESC>
  1438.  
  1439.                          Exit from the VIEW program.  Unless the "-XI"
  1440.                          command line argument is set, this key will
  1441.                          initiate a verification window to ensure the exit
  1442.                          is actually desired.  If there are additional
  1443.                          files in the current file list (see File
  1444.                          Operations below), then an option is also provided
  1445.                          in the verification window to open any of these
  1446.                          files.
  1447.  
  1448.                          <ESC> is also used to escape from the current
  1449.                          operation; whether entering search text or a
  1450.                          matchlist specification, or the popup menu.
  1451.  
  1452.                     <ALT q>
  1453.  
  1454.                          Exit from the VIEW program immediately.  No
  1455.                          verification prompt is issued.
  1456.  
  1457.                The single text file as described here, appears on startup
  1458.                if a single file was specified on the command line.
  1459.                Additional initial windows occur if no files, or multiple
  1460.                files, were specified on the command line.  For these
  1461.                conditions refer to the <ALT m> and <ALT f> explanations in
  1462.                the following File Operation section.
  1463.  
  1464.                Error windows will be generated if read errors occur or if
  1465.                the file size exceeds the available memory limit (for
  1466.                systems with a full complement of memory, this is typically
  1467.                in excess of 500KB).
  1468.  
  1469.  
  1470.  
  1471. BTS Utilities User Manual                                    (VIEW) Page 29
  1472. ___________________________________________________________________________
  1473.  
  1474.  
  1475.                FILE OPERATIONS
  1476.                _______________
  1477.  
  1478.                While VIEW is only capable of displaying one file at a time,
  1479.                it is possible to specify multiple files through a matchlist
  1480.                specification.  These can then be viewed in sequence.
  1481.  
  1482.                The file operation commands are:
  1483.  
  1484.                     <ALT m>
  1485.  
  1486.                          Enter a new file matchlist specification.  A text
  1487.                          entry window is generated for entering the match
  1488.                          list specification.  For example:
  1489.  
  1490.                               d:\dos\!*.com !*.exe
  1491.  
  1492.                          specifies all the files in the D:\DOS directory
  1493.                          except for the executable programs.
  1494.  
  1495.                          The default specification placed within the text
  1496.                          entry window is "*".  Simply enter <RETURN> if you
  1497.                          wish to see all of the files, or overwrite this
  1498.                          with a particular matchlist specification.  The
  1499.                          window will scroll horizontally if required for a
  1500.                          long specification.
  1501.  
  1502.                          If the completed matchlist specification refer-
  1503.                          ences a single file, the file is opened
  1504.                          immediately and the text presented on the VIEW
  1505.                          screen.  If the matchlist corresponds to no files,
  1506.                          an error tone is issued and the screen is blanked.
  1507.                          Re-enter <ALT m> and the correct specification.
  1508.                          If the matchlist specification corresponds to two
  1509.                          or more files a file list window is generated -
  1510.                          see the <ALT f> explanation below.
  1511.  
  1512.                     <ALT f>
  1513.  
  1514.                          Display an alphabetical list of all files matching
  1515.                          the current matchlist specification.  Cursor
  1516.                          within this list to the desired file and enter
  1517.                          <RETURN>.  This closes the current file, if any,
  1518.                          and opens the new one.  Newly opened files always
  1519.                          start with line one, column one in the upper left
  1520.                          corner of the screen.
  1521.  
  1522.                     <keypad +>, <keypad ->
  1523.  
  1524.                          Open the next, or previous, file respectively in
  1525.                          the current file list; that is the files refer-
  1526.                          enced by the last matchlist specification.
  1527.  
  1528.  
  1529. BTS Utilities User Manual                                    (VIEW) Page 30
  1530. ___________________________________________________________________________
  1531.  
  1532.  
  1533.                GOTO AND SEARCH OPERATIONS
  1534.                __________________________
  1535.  
  1536.                These commands are provided to move through the file in a
  1537.                non-sequential manner. In particular:
  1538.  
  1539.  
  1540.                     <ALT g>  or  + - or any numeric character
  1541.  
  1542.                          Goto an absolute or relative line within the file.
  1543.                          A text entry window is provided for entering the
  1544.                          line number.  Enter a specific number to request
  1545.                          an absolute line number.  Precede the number with
  1546.                          a + or - to indicate a displacement relative to
  1547.                          the current position.  For example, enter "3,000"
  1548.                          to go to line 3000, and enter "+50" to move 50
  1549.                          lines past the current position.  Following the
  1550.                          Goto operation for an absolute line number the
  1551.                          destination line is highlighted.  For relative
  1552.                          amounts the screen is simply shifted the
  1553.                          appropriate distance (i.e. no highlighting
  1554.                          changes).
  1555.  
  1556.  
  1557.                     <ALT s>  or  any alphabetical or punctuation character
  1558.  
  1559.                          Search for a text string.  Enter the desired
  1560.                          string into the text entry window.  By default,
  1561.                          the search is case insensitive and in the forward
  1562.                          direction, but these attributes can be altered
  1563.                          through the popup menu described in the next
  1564.                          section.  The text entry window will scroll
  1565.                          horizontally for long search strings.
  1566.  
  1567.                          If the requested text is located, it will be
  1568.                          highlighted on the screen.  If the text is found,
  1569.                          but lies horizontally outside the currently
  1570.                          visible columns, the entire line will be
  1571.                          highlighted (that is rather than scrolling the
  1572.                          screen horizontally to the search text).
  1573.  
  1574.  
  1575.                     <RETURN>  or  <F3>
  1576.  
  1577.                          Repeat the last Search operation.  As for the
  1578.                          initial search, if there is a highlighted entry on
  1579.                          the screen, the search starts there - otherwise
  1580.                          from the top screen line for forward searches or
  1581.                          the bottom screen line for backward searches.  The
  1582.                          search will not cycle through from the end of the
  1583.                          file back to the beginning - use <HOME>.  The
  1584.                          search string is retained across multiple file
  1585.                          openings.
  1586.  
  1587.  
  1588.  
  1589. BTS Utilities User Manual                                    (VIEW) Page 31
  1590. ___________________________________________________________________________
  1591.  
  1592.  
  1593.                     <CTRL-RETURN>
  1594.  
  1595.                          Repeat the last Search operation, but in the
  1596.                          opposite direction.
  1597.  
  1598.                The Goto and Search functions have the normal single key
  1599.                activation code, but also respond to any of the ASCII keys
  1600.                entered through the keyboard.  For shortcut purposes it is
  1601.                assumed that all numeric keys are intended for the <ALT g>
  1602.                Goto function, and the other non CTRL and ALT keys are
  1603.                destined for the <ALT s> Search function.  Obviously search
  1604.                operations can start with a leading number; but for these
  1605.                explicitly enter the <ALT s> and then the numeric text.
  1606.  
  1607.  
  1608.  
  1609.                POPUP MENU
  1610.                __________
  1611.  
  1612.                The popup menu, initiated by </>, provides a means for
  1613.                setting search direction and search case sensitivity flags,
  1614.                and an alternative mechanism for many of the functions
  1615.                described above.  The popup menu command entries are shown
  1616.                below, with the equivalent keyboard key function at the
  1617.                right:
  1618.  
  1619.                     o  display file list          <ALT f>
  1620.  
  1621.                     o  enter file matchlist spec  <ALT m>
  1622.  
  1623.                     o  open next file             <keypad +>
  1624.  
  1625.                     o  open previous file         <keypad ->
  1626.  
  1627.                     o  search for text string     <ALT s>
  1628.  
  1629.                     o  set search direction
  1630.  
  1631.                     o  set search case sensitivity
  1632.  
  1633.  
  1634.  
  1635. EXAMPLE:       To start the VIEW program in 43 line mode, using the banner
  1636.                name and color information from the c:\bin\personal.cfg
  1637.                configuration file, to start with a filelist of all files
  1638.                with an extension starting with the letter "p" expect for
  1639.                files with a .pag extension, and to exit immediately on
  1640.                <ESC> without a verification window:
  1641.  
  1642.                     view -V43 *.p* !*.pag -XI @c:\bin\personal.cfg
  1643.  
  1644.  
  1645.  
  1646.  
  1647. BTS Utilities User Manual                                      (WI) Page 32
  1648. ___________________________________________________________________________
  1649.  
  1650.  
  1651. 10.0 WI                                                                V1.0
  1652. ___________________________________________________________________________
  1653.  
  1654.     PURPOSE:   A multi-drive file find utility that is capable of carrying
  1655.                out an arbitrary action on the located file(s).
  1656.  
  1657.     USAGE:     wi -? [drives:][path]matchlist -[pP] -d#:# -s#:# -d -s -h
  1658.                   -t -D -S -H -T -[oO] -c[#] -C[#] -x[#l#cdst] :DOS-command
  1659.  
  1660.                where (all arguments are optional):
  1661.  
  1662.                     -?        provide two complete help screens for the WI
  1663.                               command.  The first covers the search
  1664.                               criteria arguments, while the second page
  1665.                               covers arguments for the associated DOS
  1666.                               command operation.
  1667.  
  1668.                     [drives:] specification for the drives to be included
  1669.                               in the search.  This defaults to the current
  1670.                               drive if not specified.  Multiple drives can
  1671.                               be specified by concatenating the letters
  1672.                               together (e.g. cde:), by *: to indicate all
  1673.                               fixed drives, or ?: to indicate all drives,
  1674.                               whether removable or not.
  1675.  
  1676.  
  1677.                     [path]    the root of the branch (on each drive) the
  1678.                               search is to start from.  This defaults to
  1679.                               the root of the drive(s) if not stated.  To
  1680.                               start the search from the current directory,
  1681.                               enter the path as ".\".
  1682.  
  1683.  
  1684.                     matchlist
  1685.                               any valid file matchlist specification.  For
  1686.                               example:
  1687.  
  1688.                                    *.doc *.txt *.asc !known.doc
  1689.  
  1690.                               If no matchlist is provided, but a search
  1691.                               criteria is, such as a date range or file
  1692.                               attribute, then a default *.* matchlist is
  1693.                               assumed.  For example, to find all files on
  1694.                               the current drive that were modified today:
  1695.  
  1696.                                    wi -d=0
  1697.  
  1698.  
  1699.                     -p / -P   specify if there should be a Pause after each
  1700.                               complete output screen.  Default is pause:
  1701.                               -P.
  1702.  
  1703.                     -d#:#     date range search criteria in days since last
  1704.                               modification.  The #:# range specifies the
  1705.                               first through the last day to be included.
  1706.  
  1707. BTS Utilities User Manual                                      (WI) Page 33
  1708. ___________________________________________________________________________
  1709.  
  1710.  
  1711.                               If the first # is omitted, it is assumed to
  1712.                               be today (0), if the last # is omitted it is
  1713.                               assumed to be infinity (at least before the
  1714.                               1980 start date where life as we know it
  1715.                               began).  Commas can be inserted anywhere in
  1716.                               the numbers as desired.  As a shorthand, a
  1717.                               single specific day can be specified as =#.
  1718.                               For example:
  1719.  
  1720.                                    today's files
  1721.                                         -d0:0    or   -d:0    or   -d=0
  1722.  
  1723.                                    within the last 4 days
  1724.                                         -d:4
  1725.  
  1726.                                    more than one week old
  1727.                                         -d8:
  1728.  
  1729.                     -s#:#     file size range search criteria in bytes.
  1730.                               Commas can be inserted for legibility.  The
  1731.                               range encoding is as above for dates, for
  1732.                               example, files of 1Mb or more are specified
  1733.                               as:
  1734.                                         -s1,000,000:
  1735.  
  1736.                     -d        include subdirectory names in the search
  1737.                               operation.  Normally subdirectory names are
  1738.                               not included in the match operation.  The
  1739.                               term "file" as used here and subsequently,
  1740.                               infers files and directories if the -d
  1741.                               argument is set.  The size specification does
  1742.                               not apply to directories.
  1743.  
  1744.                     -s        include system files in the search.  Normally
  1745.                               system files are not examined.
  1746.  
  1747.                     -h        include hidden files in the search.  Normally
  1748.                               hidden files are not examined.
  1749.  
  1750.                     -t        display summary total at the completion of
  1751.                               the command.  The summary identifies the
  1752.                               number of files and or directories, and the
  1753.                               total number of bytes involved.  Without the
  1754.                               -t argument, this is only shown if more than
  1755.                               5 files are selected.
  1756.  
  1757.                     -D        include ONLY subdirectory names.  That is,
  1758.                               ignore files during the selection process.
  1759.  
  1760.                     -S        include ONLY files that have the system
  1761.                               attribute set.  Ignore normal files.
  1762.  
  1763.                     -H        include ONLY files that have the hidden
  1764.                               attribute set.  Ignore normal files.
  1765.  
  1766.  
  1767. BTS Utilities User Manual                                      (WI) Page 34
  1768. ___________________________________________________________________________
  1769.  
  1770.  
  1771.                     -T        display ONLY the summary total.  Do not show
  1772.                               status lines for each selected file.
  1773.  
  1774.                     -o / -O   display Output lines for selected files and
  1775.                               the summary. The -o option is similar to -T
  1776.                               except that even the summary is inhibited
  1777.                               from being displayed.  The default is to
  1778.                               always issue status lines and the summary if
  1779.                               there are more than 5 selected files: -O.
  1780.                               This command has no affect on the text issued
  1781.                               from programs initiated through the DOS-
  1782.                               command facility.
  1783.  
  1784.  
  1785.                Whereas the preceding arguments covered the search
  1786.                criteria and the presentation of the selected files, the
  1787.                following arguments determine the operations to be
  1788.                done with the selected file when the match occurs.
  1789.  
  1790.  
  1791.                     -c[#]     on completion of the search operation, change
  1792.                               directories to the drive:path associated with
  1793.                               the #th selected match.  If the # argument is
  1794.                               not specified, the first match is assumed.
  1795.  
  1796.                     -C[#]     as per -c[#] except change directories
  1797.                               immediately when the #th match occurs, rather
  1798.                               than searching for additional matches.
  1799.  
  1800.                     -x[#l#cdst]
  1801.                               execution flags for the processing of the
  1802.                               DOS-command line:
  1803.  
  1804.                                 #  maximum number of matches that are to
  1805.                                    occur before stopping.  The default is
  1806.                                    effectively infinity (don't stop due to
  1807.                                    matches).
  1808.  
  1809.                                 l# maximum number of directory levels to
  1810.                                    search.  To search only the current
  1811.                                    directory, specify -xl1
  1812.  
  1813.                                 c  before performing the command, tempor-
  1814.                                    arily change the current directory to
  1815.                                    the directory containing the selected
  1816.                                    file.
  1817.  
  1818.                                 d  only execute the command once per
  1819.                                    directory.  The command will be carried
  1820.                                    out for each directory containing at
  1821.                                    least one selection.  File variables
  1822.                                    within the command, such as $f (see
  1823.                                    below), refer to the directory
  1824.                                    containing the selections and not to the
  1825.                                    selections themselves.
  1826.  
  1827. BTS Utilities User Manual                                      (WI) Page 35
  1828. ___________________________________________________________________________
  1829.  
  1830.  
  1831.                                 s  show each command line executed.  Each
  1832.                                    command line, with expanded arguments,
  1833.                                    is displayed, preceded by "WI".
  1834.  
  1835.                                 t  test mode - display the command line(s)
  1836.                                    that would be executed, as for the -xs
  1837.                                    option, but don't actually execute it.
  1838.  
  1839.                     :DOS-command
  1840.                               a valid DOS command, complete with any
  1841.                               desired arguments.  The command line is
  1842.                               executed for each matched file.  In the same
  1843.                               manner as for ToolBOX and the MAKEBAT
  1844.                               programs, the command line can contain
  1845.                               embedded variables for matched filenames:
  1846.  
  1847.                                    $D  current drive letter
  1848.                                    $P  current path
  1849.                                    $d  matched drive letter
  1850.                                    $p  matched path
  1851.                                    $n  filename (to 8 characters)
  1852.                                    $x  extension(to 3 characters)
  1853.                                    $f  minimized matched filename  (for
  1854.                                        required portions of $d:$p\$n.$x)
  1855.                                    $$  a single $
  1856.  
  1857.                               If the match corresponds to a directory (e.g.
  1858.                               d:\dos), then:
  1859.  
  1860.                                    $p    corresponds to      \dos
  1861.  
  1862.                                               while
  1863.  
  1864.                                    $f    corresponds to      \dos\.
  1865.  
  1866.                               Whatever output is generated from the [DOS-
  1867.                               command] itself is not included in the
  1868.                               pagination calculation for the -P screen
  1869.                               pause option.  Text lines will likely scroll
  1870.                               off the top of the screen.
  1871.  
  1872.                The factory default is equivalent to: wi -PO
  1873.  
  1874.                For the WI arguments:
  1875.  
  1876.                     o case is only significant for options that have
  1877.                       different interpretations for the upper and lower
  1878.                       case settings.
  1879.  
  1880.                     o order is not significant, except that if it exists,
  1881.                       the :[DOS-command] argument must be the last argument
  1882.                       on the command line.
  1883.  
  1884.                     o there is no ambiguity among the arguments if they are
  1885.                       properly stated.
  1886.  
  1887. BTS Utilities User Manual                                      (WI) Page 36
  1888. ___________________________________________________________________________
  1889.  
  1890.  
  1891.     SUMMARY:   The wi utility searches through drives or a directory branch
  1892.                for files and/or directories that fulfill a given set of
  1893.                criteria.  As described in detail above, the search criteria
  1894.                can be any of:
  1895.  
  1896.                     o matchlist specification for filenames
  1897.  
  1898.                     o file type attributes for directories, hidden, or
  1899.                       system.
  1900.  
  1901.                     o days since last modification
  1902.  
  1903.                     o file size in bytes
  1904.  
  1905.                The search is conducted through a specified directory and
  1906.                then all of its descendant subdirectories.  Normally the
  1907.                search starts from the root directory, yielding a search of
  1908.                all directories on the disk.  Disk drives to be searched can
  1909.                be stated individually or by referring to all disk drives,
  1910.                or to all non-removable disk drives.
  1911.  
  1912.                For each file (or directory) that is selected based on the
  1913.                search criteria, a status line is generated on the screen.
  1914.  
  1915.                Optionally, it is possible to carry out an action on each of
  1916.                these selected files.  This could be as simple as changing
  1917.                the current directory to that of the selected file, or as
  1918.                complicated as can be stated within a DOS command line.
  1919.                Variables are available for referencing the selected files
  1920.                from within the DOS command line.
  1921.  
  1922.                For details refer to the argument descriptions in the USAGE
  1923.                section above.
  1924.  
  1925.  
  1926.     EXAMPLE:   1) Find all the .DAT files on the hard disks and get a total
  1927.                   of the disk space they occupy (sample output shown for
  1928.                   this example only):
  1929.  
  1930.                     wi *:*.dat
  1931.  
  1932.                    18,944  15Nov91 01:39  C:\BIN\BTS-TREE.DAT
  1933.                       672  16Oct89 07:46  C:\DEV\TBOX\MAKETEST\LINES.DAT
  1934.                   232,232  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\CONTRY.DAT
  1935.                       578  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\BUBBLE.DAT
  1936.                    47,288  11Aug91 00:33  D:\PKG\PAF\PAF-DATA\INDIV2.DAT
  1937.                     2,192  12Sep88 10:38  D:\PKG\QB\QCARDS.DAT
  1938.                    25,268  21Dec90 00:00  D:\PKG\PCPLUS\MODEMS.DAT
  1939.                   302,848  18Jly90 12:00  E:\PKG\WINWORD\SYN-AM.DAT
  1940.                   188,584  18Jly90 12:00  E:\PKG\WINWORD\LEX-AM.DAT
  1941.                    24,072  18Jly90 12:00  E:\PKG\WINWORD\HYPH.DAT
  1942.                       338  18Jly90 12:00  E:\PKG\WINWORD\PCW-RTF.DAT
  1943.                10 files (633,707 bytes)
  1944.  
  1945.  
  1946.  
  1947. BTS Utilities User Manual                                      (WI) Page 37
  1948. ___________________________________________________________________________
  1949.  
  1950.  
  1951.                2) Find all the hidden files on the current drive and then
  1952.                   change directories to where the first one occurred:
  1953.  
  1954.                     wi /H -c
  1955.  
  1956.  
  1957.                3) Find and view the contents of all the README.DOC files on
  1958.                   all disks:
  1959.  
  1960.                     wi ?:readme.doc /xop :view $f
  1961.  
  1962.  
  1963.                4) Delete all temporary .BAK, .TMP, and .OLD files on all
  1964.                   hard disks that are at least 2 days old:
  1965.  
  1966.                     wi *:*.bak *.tmp *.old -d2: -p :del $f
  1967.  
  1968.  
  1969.                5) Copy all hard drive files that were modified today
  1970.                   (except .BAK files) to an archive directory on drive a:
  1971.  
  1972.                     wi -d=0 !*.bak :copy $f a:\save\
  1973.  
  1974.  
  1975.                6) While crude, the following example removes all empty
  1976.                   directories on the current drive.  This is done by
  1977.                   attempting to remove all directories, which only works
  1978.                   for the ones that happen to be empty.  An error message
  1979.                   is in fact generated for each directory regardless; by
  1980.                   DOS if the directory is not empty and cannot be deleted,
  1981.                   and by WI if it was deleted since WI can then no longer
  1982.                   find it to search as a descendant.  This will only remove
  1983.                   one level of empty directories at a time.  Repeat for
  1984.                   successive levels.
  1985.  
  1986.                     wi -D -p :rmdir $p
  1987.  
  1988.  
  1989.                7) For the current directory and all of it's descendant
  1990.                   directories, do a DOS dir command, if and only if, there
  1991.                   is at least one .WK1 file.  Redirect all the DIR command
  1992.                   outputs (inhibit all WI output) to a data file for later
  1993.                   examination.  Note the redirection occurs for the WI
  1994.                   command as a whole, not for the individual [DOS-
  1995.                   command]'s.
  1996.  
  1997.                     wi .\*.wk1 -xd  -p -o :dir $p >wk1dirs.txt
  1998.  
  1999.                               or equivalently
  2000.  
  2001.                     wi .\*.wk1 -xdc -p -o :dir    >wk1dirs.txt
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007. BTS Utilities User Manual                                      (WI) Page 38
  2008. ___________________________________________________________________________
  2009.  
  2010.  
  2011. APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY
  2012.  
  2013.  
  2014.     NOTE:   -? is a valid request for help for all command line programs.
  2015.  
  2016.  
  2017.           ────────────────────────────────────────────────────────────
  2018.  
  2019.  
  2020.     USAGE: BTSPATCH program[.exe] [=new-parameter-list]
  2021.  
  2022.         WHERE:
  2023.  
  2024.           program[.exe]            any Binary Toolshed program.
  2025.  
  2026.           [=new-parameter-list]    valid set of arguments for specified
  2027.                                    program.
  2028.  
  2029.         DEFAULTS:
  2030.  
  2031.           none
  2032.  
  2033.         EXAMPLE:
  2034.  
  2035.           btspatch wi =-t
  2036.  
  2037.           ────────────────────────────────────────────────────────────
  2038.  
  2039.  
  2040.     USAGE: DIRS [path] [-l#] [-pP] [-sS]
  2041.  
  2042.         WHERE:
  2043.  
  2044.           [path]    root directory of branch to be displayed.
  2045.           -l#       maximum reported subdirectory level(s).
  2046.           -pP       pause after output screens.
  2047.           -sS       inhibit Summary report.
  2048.  
  2049.         DEFAULTS:
  2050.  
  2051.           dirs .\ -l7 -P -S
  2052.  
  2053.         EXAMPLE:
  2054.  
  2055.           dirs \workdirs -l1 /p
  2056.  
  2057.  
  2058.           ────────────────────────────────────────────────────────────
  2059.  
  2060.  
  2061. BTS Utilities User Manual                                      (WI) Page 39
  2062. ___________________________________________________________________________
  2063.  
  2064.  
  2065.     USAGE: DRIVES [-f]
  2066.  
  2067.         WHERE:
  2068.  
  2069.           -f        read floppy drive media.
  2070.  
  2071.         DEFAULTS:
  2072.  
  2073.           drives
  2074.  
  2075.         EXAMPLE:
  2076.  
  2077.           drives -f
  2078.  
  2079.  
  2080.           ────────────────────────────────────────────────────────────
  2081.  
  2082.  
  2083.     USAGE: MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  2084.  
  2085.         WHERE:
  2086.  
  2087.           [d:][path]matchlist      file selection criteria.
  2088.           [@template.ext]          template text file.  If absent, input
  2089.                                    assumed from STDIN.  Contents of temp-
  2090.                                    late file copied to STDOUT for each
  2091.                                    matched file (except for lines preceded
  2092.                                    with [ and ] which are copied as the
  2093.                                    leading and trailing lines of STDOUT
  2094.                                    respectively).  Variables within the
  2095.                                    template file are substituted for as
  2096.                                    follows based on the matched name:
  2097.  
  2098.                                         $D  current drive letter
  2099.                                         $P  current path
  2100.                                         $d  matched drive letter
  2101.                                         $p  matched path
  2102.                                         $n  filename (to 8 chars)
  2103.                                         $x  extension (to 3 chars)
  2104.                                         $f  minimized file name
  2105.                                             (for $d:$p\$n.$x)
  2106.                                         $$  a single $
  2107.  
  2108.                                    Command line arguments substituted for:
  2109.  
  2110.                                         $1  arg1
  2111.                                         $2  arg2
  2112.                                          . . .
  2113.  
  2114.           [-arg1]...               Substituted into template file as above.
  2115.            
  2116.  
  2117.         DEFAULTS:
  2118.  
  2119.           none
  2120.  
  2121. BTS Utilities User Manual                                      (WI) Page 40
  2122. ___________________________________________________________________________
  2123.  
  2124.  
  2125.  
  2126.         EXAMPLE:
  2127.  
  2128.           makebat *.prn @fprint.tem >fprint.bat
  2129.  
  2130.                WHERE FPRINT.TEM contains:
  2131.  
  2132.                [
  2133.                [ SAMPLE TO PRINT AND DELETE FILES
  2134.                [
  2135.                copy $f prn:
  2136.                del $f
  2137.  
  2138.  
  2139.           ────────────────────────────────────────────────────────────
  2140.  
  2141.  
  2142.     USAGE : ONPATH matchlist [=setVariable] ...
  2143.  
  2144.         WHERE:
  2145.  
  2146.           matchlist      specification for files to be located on the PATH.
  2147.  
  2148.           [=setVariable] alternative set variable [to PATH] defining the
  2149.                          directories to be searched.
  2150.  
  2151.         DEFAULTS:
  2152.  
  2153.           none
  2154.  
  2155.         EXAMPLE:
  2156.  
  2157.           onpath wp*
  2158.  
  2159.  
  2160.           ────────────────────────────────────────────────────────────
  2161.  
  2162.  
  2163.  
  2164. BTS Utilities User Manual                                      (WI) Page 41
  2165. ___________________________________________________________________________
  2166.  
  2167.  
  2168.     USAGE : TOASCII <pcchars.in >ascii.out
  2169.  
  2170.         WHERE:
  2171.  
  2172.           <              STDIN input file containing IBM PC 8 bit
  2173.                          characters.
  2174.  
  2175.           >              STDOUT output file containing STDIN file
  2176.                          filtered to standard ASCII scharacter values.
  2177.         DEFAULTS:
  2178.  
  2179.           none
  2180.  
  2181.         EXAMPLE:
  2182.  
  2183.           toascii <pcchars.in >ascii.out
  2184.  
  2185.  
  2186.           ────────────────────────────────────────────────────────────
  2187.  
  2188.  
  2189.     USAGE : TREE  path  @cfgfile -Dpath  -V[b m s c e v]  -C[m c g]
  2190.                   -X[a#][c][dD][i][t#][uU]
  2191.  
  2192.         WHERE (all arguments are optional):
  2193.  
  2194.           path      display drive and/or directory.
  2195.           -@cfgfile configuration file pathname.
  2196.           -Dpath    directory for BTS-TREE.DAT.
  2197.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2198.           -C        color table selection for Monochrome/Color/Grayscale.
  2199.           -X        execution flags
  2200.                        a#     Audio, WHERE # enables error sounds for
  2201.                               1(border) + 2(syntax) + 4(execution)
  2202.                               +8(automatic directory tree update).
  2203.                        c      force Current drive tree initialization.
  2204.                        d / D  use Datafile.
  2205.                        i      force Initialization of all drive trees.
  2206.                        t#     set filelist update Time (tenths/sec).
  2207.                        uU     Update datafile enable.
  2208.  
  2209.         DEFAULTS:
  2210.  
  2211.           tree .\ -Xa7Dt7U
  2212.  
  2213.         EXAMPLE:
  2214.  
  2215.           tree d:\workarea @d:\bin\mycolors.tem -Xt12
  2216.  
  2217.  
  2218. BTS Utilities User Manual                                      (WI) Page 42
  2219. ___________________________________________________________________________
  2220.  
  2221.  
  2222.     USAGE : VIEW [d:][path\]matchList @cfgfile -V [b m s c e v] [25 43 50]
  2223.                  -C[m c g] -X[a#][cC][iI][rR]
  2224.  
  2225.         WHERE (all arguments are optional):
  2226.  
  2227.  
  2228.           [d:][path\]matchList  filename specifications...
  2229.           @cfgfile  full configuration pathname specification.
  2230.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2231.                     plus setting for number of display lines 25/43/50.
  2232.           -C        color table selection for Monochrome/Color/Grayscale.
  2233.           -X        execution flags
  2234.                         a#     Audio, WHERE # enables error sounds for
  2235.                                1(border) + 2(syntax) + 4(execution).
  2236.                         c / C  make text searches Case sensitive.
  2237.                         i / I  exit Immediately without prompt.
  2238.                         r / R  Restore DOS screen on exit.
  2239.  
  2240.         DEFAULTS:
  2241.  
  2242.           view -Xa7cir)
  2243.  
  2244.         EXAMPLE:
  2245.  
  2246.           view -V43 *.doc *.txt -XI @c:\bin\personal.cfg
  2247.  
  2248.  
  2249.           ────────────────────────────────────────────────────────────
  2250.  
  2251.  
  2252. BTS Utilities User Manual                                      (WI) Page 43
  2253. ___________________________________________________________________________
  2254.  
  2255.  
  2256.  
  2257.     USAGE: WI [drives:][path]matchlist  [-flags]  [:DOS-command]
  2258.  
  2259.         [drives:]        single (a:), multiple (cdf:), all (?:) or all
  2260.                          hard (*:) drive selection.
  2261.         [path]matchlist  file selection criteria.
  2262.         [flags]
  2263.  
  2264.           -?    extended help (including auxiliary DOS command).
  2265.           -pP   pause after output screens.
  2266.           -d#:# select files within range days old.
  2267.           -s#:# select files within range size bytes.
  2268.           -d    include subdirectory names.
  2269.           -s    include system files.
  2270.           -h    include hidden files.
  2271.           -t    display summary total
  2272.           -D    include ONLY subdirectory names.
  2273.           -S    include ONLY system files.
  2274.           -H    include ONLY hidden files.
  2275.           -T    display ONLY summary total.
  2276.           -oO   issue Output lines.
  2277.  
  2278.           -c[#] change dir to #th match on completion (DEFAULTS is first).
  2279.           -C[#] change dir immediately on #th match.
  2280.           -x    execution flags
  2281.                     #    maximum number of matches.
  2282.                     l#   maximum number of directory search levels.
  2283.                     c    change dir before executing cmd line.
  2284.                     d    execute command once per directory.
  2285.                     s    show each command line executed.
  2286.                     t    test mode - just display command lines.
  2287.  
  2288.           [DOS-command]  DOS command line including embedded variables for
  2289.                          matched filenames:
  2290.  
  2291.                               $D  current drive letter
  2292.                               $P  current path
  2293.                               $d  matched drive letter
  2294.                               $p  matched path
  2295.                               $n  filename (to 8 characters)
  2296.                               $x  extension(to 3 characters)
  2297.                               $f  minimized matched filename
  2298.                                      (for $d:$p\$n.$x)
  2299.                               $$  a single $
  2300.  
  2301.  
  2302.         EXAMPLE:
  2303.  
  2304.           wi dc:*.tmp *.old *.pag -d3: -opxt :del $f
  2305.  
  2306.  
  2307.           ────────────────────────────────────────────────────────────
  2308.  
  2309.  
  2310.  
  2311.